*{
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root{
  /* display */
  --display-height: calc(100vh - (8.5rem / 1.8));

  /* font */
  --Xl-header-font-size: clamp(1.5rem, 2.5vw, 3rem);
  --Xl-des-font-size: clamp(1rem, 1.5vw, 1.55rem);
  --Xl-button-font-size: clamp(0.85rem, 0.95vw, 1.85rem);

  --L-header-font-size: clamp(1.5rem, 2.25vw, 2.5rem);
  --L-des-font-size: clamp(0.75rem, 1.25vw, 1.5rem);
  --L-button-font-size: clamp(0.85rem, 0.95vw, 1.85rem);

  --M-header-font-size: clamp(1.25rem, 1.75vw, 2.25rem);
  --M-des-font-size: clamp(0.5rem, 1vw, 1.15rem);
  --M-button-font-size: clamp(0.35rem, 0.5vw, 1.5rem);

  --S-header-font-size: clamp(1rem, 1.5vw, 2rem);
  --S-des-font-size: clamp(0.35rem, 0.75vw, 0.95rem);

  --main-font: "Nanum Myeongjo", serif;
  --des-font: "Urbanist", sans-serif;

  --light-font-w: 300;
  --normal-font-w: 500;
  --bold-font-w: 700;

  /* color */
  --whiteS: whitesmoke;
  --darkBlue0: #000845;
  --darkBlue1: #030b3f;
  --darkBlue2: #00020d;
  --lightGrey0: #ededed;
  --lightGrey1: #c6c6c6;
  --lightGrey2: #a2a2a2;
  --black: #000;
  --gladient-darkblue: linear-gradient(90deg, #030b3f 40%, #010629 60%, #00020d 100%);
}

.mainContent{
  height: 100vh;
  width: 100%;
  padding: 1rem;
  font-family: var(--main-font);
  background-color: var(--darkBlue2);
  color: var(--whiteS);
}

.mainContent .container{
  width: 100%;
  height: 100%;
  display: flex;
  overflow: hidden;
}

/* @keyframes slideIn {
  from {
    transform: translateX(100vw);
  }
  to {
    transform: translateX(0);
  }
} */

section.productSection{
  width: 100%;
  height: 100%;
  display: none;
}

section.productSection.active{
  display: flex;
  /* animation: slideIn 1s forwards; */
}

section.productSection .productContainer{
  width: 100%;
  height: 100%;
}

section.productSection .gridContainer{
  width: 100%;
  height: 100%;
  display: grid;
  gap: 2rem;
  grid-template-columns: 3fr 2fr;
  grid-template-rows: 1fr 1fr;
}

.gridHeader{
  height: 100%;
  width: 100%;
  display: flex;
  font-size: var(--L-header-font-size);
  .header{
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 2rem;
  }
  h2{
    font-weight: var(--normal-font-w);
  }
  img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    max-height: var(--L-header-font-size);
  }
  p{
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
    font-size: var(--L-des-font-size);
  }
}

.gridImg{
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  img{
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  a{
    color: var(--whiteS);
    font-size: var(--M-des-font-size);
    text-decoration: none;
  }
}

.gridArticle{
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: flex-start;
  justify-content: center;
  .description{
    font-size: var(--L-des-font-size);
    display: flex;
    /* width: max(70%, 50vw); */
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  button{
    padding: 0.5rem 0;
    border-radius: 2rem;
    border: none;
  }
  a{
    padding: 0.5rem 1.5rem;
    font-family: var(--des-font);
    font-weight: var(--normal-font-w);
    font-size: var(--L-button-font-size);
    text-decoration: none;
    color: var(--darkBlue0);
  }
}


/* productItem styling */
section#Diaphragm-Seal .productContainer{
  display: flex;
  align-items: center !important;
  gap: 1rem;
  height: 100%;
  overflow: auto;
  flex-wrap: wrap;
}

section.productItem{
  max-height: 45%;
  width: max(calc((100vw * 80/100) * (1/4)), calc((38rem * 4/5) * (1/4)));
}

section.productItem,
section.productItem a{
  text-decoration: none;
  color: var(--whiteS);
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  /* padding: 2rem; */
  background-color: #050524;
  border-radius: 2rem;
  /* color: var(--darkBlue0); */
}

section.productItem a{
  width: 100%;
  height: 100%;
}

section.productItem .imgCon{
  width: 100%;
  height: 50%;
  /* padding: 2rem; */
  img{
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
}

section.productItem .articleCon{
  width: 100%;
  height: 50%;
  display: flex;
  gap: 1rem;
  padding: 2rem;
  padding-top: 0;
  flex-direction: column;
  /* justify-content: center; */
  align-items: center;
  .header{
    font-size: var(--M-des-font-size);
    /* font-family: var(--main-font); */
    text-align: center;
    font-family: var(--des-font);
    h2{
      font-weight: 600;
    }
  }
  .description{
    font-size: var(--L-des-font-size);
    font-family: var(--main-font);
    font-family: var(--des-font);
    display: none;
  }
  button{
    display: none;
    padding: 0.5rem 0;
    border-radius: 2rem;
    border: none;
  }
  a{
    padding: 0.5rem 1.5rem;
    font-family: var(--des-font);
    font-weight: var(--normal-font-w);
    font-size: var(--L-button-font-size);
    text-decoration: none;
    color: var(--darkBlue0);
  }
}


@media screen and (max-width: 1200px){
  main.mainContent{
    padding-left: min(calc(100vw * 20/100), calc(38rem * 1/5)) !important;
    position: absolute;
    width: 100vw;
  }

  section.productItem{
    max-height: 45%;
    width: max(calc((100vw * 80/100) * (1/3)), calc((38rem * 4/5) * (1/3)));
  }
}

@media screen and (max-width: 800px){
  section.productSection .gridContainer{
    gap: 0rem;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr 1fr;
  }

  .gridArticle{
    align-items: flex-start;
  }

  section.productItem{
    max-height: 45%;
    width: max(calc((100vw * 80/100) * (1/2)), calc((38rem * 4/5) * (1/2)));
  }
}

@media screen and (max-width: 767px){
  main.mainContent{
    padding-left: min(calc(100vw * 20/100), calc(38rem * 1/5)) !important;
  }

  section#Diaphragm-Seal .productContainer{
    justify-content: center !important;
    align-items: center;
  }

  section.productItem{
    max-height: 45%;
    width: max(calc((100vw * 20/100)), calc((38rem * 4/5)));
    max-width: min(calc(100vw * 95/100), calc(38rem * 6/7)) !important;
  }
}

@media screen and (max-width: 750px){
  main.mainContent{
    padding-left: min(calc(100vw * 20/100), calc(38rem * 1/5)) !important;
  }
  section#Diaphragm-Seal .productContainer{
    justify-content: center !important;
  }
}

@media screen and (max-width: 400px){

  main.mainContent{
    padding-left: max(calc(100vw * 5/100), calc(38rem * 1/7)) !important;
  }
}